<?php use_helper('PA_Tree') ?>
<?php use_helper('PA_Links') ?>
<div class="cTree">
  <p id="title"> Kategorie </p>
  <?php if(isset($tree)): ?>
  <?php render_category_tree($tree); ?>
  <?php else: ?>
  Brak kategorii. <br /><br />
  <?php endif; ?>
  <?php if($sf_user->hasCredential('admin')): ?>
  <span>
  <img src="/images/icons/change.png" class="middle" width="18" height="18"/>
  <a href="<?php echo link_to_app('Core', 'categoriesSettings') ?>" class="middle">Zmień</a>
  </span>
  <?php endif; ?>
</div>